package com.antdesignbackend.backend.common;


import org.apache.commons.codec.digest.DigestUtils;

/**
 * Created by Administrator on 2020/3/26.
 */
public class MD5 {

    /**
     * md5加密
     * @param str 加密字符串
     * @return
     */
    public static String encrypt(String str) {
        return DigestUtils.md5Hex(str);
    }
}
